#include <iostream>
#include <string>
#include <vector>
#include <cstdint>

#include <unistd.h>

std::vector<double> getNums(const std::string& data)
{
    std::string assist = std::string();
    std::vector<double> ans = std::vector<double>();
    for(const char& ch : data)
    {
        if ((ch >= '0' && ch <= '9') || ch == '-' || ch == '.')
        {
            if (assist.empty() && ch == '.')
            {
                assist += '0';
            }
            assist += ch;
        }
        else
        {
            if (!assist.empty() && assist.back() == '.')
            {
                assist += '0';
            }
            if (!assist.empty() && assist != "-")
            {
                double cur_num = 0.0l;
                try
                {
                    cur_num = std::stod(assist);
                }
                catch(const std::exception& e)
                {
                    assist.clear();
                    continue;
                }
                assist.clear();
                ans.push_back(cur_num);
            }
        }
    }
    if (!assist.empty() && assist.back() == '.')
    {
        assist += '0';
    }
    if (!assist.empty() && assist != "-")
    {
        double cur_num = 0.0l;
        try
        {
            cur_num = std::stod(assist);
        }
        catch(const std::exception& e) {}
        ans.push_back(cur_num);
    }
    return ans;
}

int main(int argc, char* argv[])
{
    std::vector<double> nums = std::vector<double>();
    if (!isatty(STDIN_FILENO))	//如果STDIN_FILENO不来自终端
    {
        char buf[1024] = {0};
        std::string input_data = std::string();
        while(read(STDIN_FILENO, buf, sizeof(buf) - 1) > 0)
        {
            input_data += buf;
        }
        nums = getNums(input_data);
        if (nums.size() > 2)
        {
            std::cerr << "\033[31m" << "参数过多, 最多只接受两个参数" << "\033[0m" << std::endl;
            if (!isatty(STDOUT_FILENO))
            {
                std::cout << "nan" << std::endl;
            }
            return 0;
        }
    }
    if (argc > 1)
    {
        if (argc - 1 + nums.size() != 2)
        {
            std::cerr << "\033[31m" << "需要两个参数" << "\033[0m" << std::endl;
            if (!isatty(STDOUT_FILENO))
            {
                std::cout << "nan" << std::endl;
            }
            return 0;
        }
        for (std::int32_t i = 1; i < argc; i++)
        {
            try
            {
                nums.push_back(std::stod(argv[i]));
            }
            catch(const std::exception&)
            {
                std::cerr << "\033[31m" << "参数无法转换为浮点数" << "\033[0m" << std::endl;
                if (!isatty(STDOUT_FILENO))
                {
                    std::cout << "nan" << std::endl;
                }
                return 0;
            }
        }
    }
    if (nums[0] >= nums[1])
    {
        if (!isatty(STDOUT_FILENO))
        {
            std::cout << "true" << std::endl;
        }
        std::cerr << "true" << std::endl;
    }
    else
    {
        if (!isatty(STDOUT_FILENO))
        {
            std::cout << "false" << std::endl;
        }
        std::cerr << "false" << std::endl;
    }
    return 0;
}
